Package unlimited.fc.server.api
Class UserGroupContainer
- java.lang.Object
-
- unlimited.fc.server.api.UserGroupContainer
-
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Comparable
public class UserGroupContainer extends java.lang.Object implements java.lang.Cloneable, java.lang.ComparableTitle: FileCatalyst Direct Server API
Description: Container class that holds user group data. Allows viewing of User Group by API caller without exposing the inner User Group classes.
Copyright: Copyright (c) 2013
Company: Unlimi-Tech Software Inc.
- Since:
- v3.1
- Version:
- 1.0
- Author:
- Christian Charette, ccharette
-
-
Constructor Summary
Constructors Constructor Description UserGroupContainer(java.lang.String name, java.lang.String description, boolean enabled)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserGroupContainerclone()Clone methodintcompareTo(java.lang.Object o)Custom compare to method for this objectbooleanequals(java.lang.Object obj)Custom equals method for the objectjava.lang.StringgetDescription()Get the user group descriptionjava.lang.StringgetName()Returns the group name visible in the remote administration consoleinthashCode()Custom hash-code method for this objectbooleanisEnabled()If the user group is enabled or not.voidsetDescription(java.lang.String description)Modify the user group descriptionvoidsetEnabled(boolean enabled)Set the user group to be enabled or disabled.voidsetName(java.lang.String name)Modify the name of the user groupjava.lang.StringtoString()Write out UserGroupContainer object to string.
-
-
-
Constructor Detail
-
UserGroupContainer
public UserGroupContainer(java.lang.String name, java.lang.String description, boolean enabled)Default constructor.- Parameters:
name- Name of the group as it appears to an administrator.description- Description of the user groupenabled- TRUE if the user group is currently enabled, FALSE if the group is disabled.
-
-
Method Detail
-
clone
public UserGroupContainer clone()
Clone method- Overrides:
clonein classjava.lang.Object- Returns:
-
getName
public java.lang.String getName()
Returns the group name visible in the remote administration console- Returns:
- the name
-
setName
public void setName(java.lang.String name)
Modify the name of the user group- Parameters:
name- the name to set
-
getDescription
public java.lang.String getDescription()
Get the user group description- Returns:
- the description
-
setDescription
public void setDescription(java.lang.String description)
Modify the user group description- Parameters:
description- the description to set
-
isEnabled
public boolean isEnabled()
If the user group is enabled or not.- Returns:
- TRUE if the user group is currently enabled, FALSE if the group is disabled.
-
setEnabled
public void setEnabled(boolean enabled)
Set the user group to be enabled or disabled.- Parameters:
enabled- the enabled to set
-
hashCode
public int hashCode()
Custom hash-code method for this object- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Custom equals method for the object- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
Write out UserGroupContainer object to string. Used for debugging.- Overrides:
toStringin classjava.lang.Object- Returns:
- String
-
compareTo
public int compareTo(java.lang.Object o)
Custom compare to method for this object- Specified by:
compareToin interfacejava.lang.Comparable
-
-