de.uplanet.lucy.server.auxiliaries.ds
Class DsTypeWrapper

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.ds.DsTypeWrapper

public class DsTypeWrapper
extends java.lang.Object

Version:
$Revision: 76897 $

Constructor Summary
DsTypeWrapper()
           
 
Method Summary
 de.uplanet.lucy.server.usermanager.IDsType Container()
          can be used in a if clause.
 de.uplanet.lucy.server.usermanager.IDsType DistList()
          can be used in a if clause.
 de.uplanet.lucy.server.usermanager.IDsType Group()
          can be used in a if clause.
 boolean isContainer(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
          check if p_item is derived from user
 boolean isDerivedFromContainer(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
          check if p_item is derived from container
 boolean isDerivedFromContainer(java.lang.String p_strTypeKey)
          check if p_item is derived from container
 boolean isDerivedFromSet(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
          check if p_item is derived from set
 boolean isDerivedFromSet(java.lang.String p_strTypeKey)
          check if p_item is derived from set
 boolean isDerivedFromUser(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
          checks if the p_item is an user type
 boolean isDerivedFromUser(java.lang.String p_strTypeKey)
          checks if the p_item is an user type
 boolean isDistList(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
          checks if p_item is a DistList
 boolean isGroup(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
          checks if p_item is a Group
 boolean isGroup(java.lang.String p_strTypeKey)
          checks if p_item is a Group
 boolean isObject(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
          checks if the p_item is an object type
 boolean isOrganization(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
          checks if p_item is a Organizationt
 boolean isOrgUnit(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
          checks if p_item is a OrgUnit
 boolean isRole(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
          checks if p_item is a role
 boolean isRole(java.lang.String p_strTypeKey)
          checks if p_item is a role
 boolean isSet(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
          checks if p_item is a set
 boolean isUser(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
          checks if the p_item is an user type
 boolean isUserDefined(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item, java.lang.String p_strKey)
          checks if p_item is a user defined object with the given id (equals to the STRNAME column in the DSCLASS table)
 boolean isValid(java.lang.Object p_item)
          checks if the p_item is an valid DsItem Object, that can be used in the ds wrapper classes
 de.uplanet.lucy.server.usermanager.IDsType Object()
          can be used in a if clause.
 de.uplanet.lucy.server.usermanager.IDsType Organization()
          can be used in a if clause.
 de.uplanet.lucy.server.usermanager.IDsType OrgUnit()
          can be used in a if clause.
 de.uplanet.lucy.server.usermanager.IDsType Role()
          can be used in a if clause.
 de.uplanet.lucy.server.usermanager.IDsType Set()
          can be used in a if clause.
 de.uplanet.lucy.server.usermanager.IDsType User()
          can be used in a if clause.
 de.uplanet.lucy.server.usermanager.IDsType UserDefined(int p_iId, java.lang.String p_strKey)
          new User defined type (not immutable) cannot use in a if clause to check a type like if (TYPE == getUserDefined(...))
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DsTypeWrapper

public DsTypeWrapper()
Method Detail

Object

public final de.uplanet.lucy.server.usermanager.IDsType Object()
can be used in a if clause. e.q. if (checkType == Object())

Returns:
immutable Object type

User

public final de.uplanet.lucy.server.usermanager.IDsType User()
can be used in a if clause. e.q. if (checkType == User())

Returns:
immutable User Type

Container

public final de.uplanet.lucy.server.usermanager.IDsType Container()
can be used in a if clause. e.q. if (checkType == Container())

Returns:
immutable Containertype

Set

public final de.uplanet.lucy.server.usermanager.IDsType Set()
can be used in a if clause. e.q. if (checkType == Set())

Returns:
immutable Set type

Role

public final de.uplanet.lucy.server.usermanager.IDsType Role()
can be used in a if clause. e.q. if (checkType == User())

Returns:
immutable role type

DistList

public final de.uplanet.lucy.server.usermanager.IDsType DistList()
can be used in a if clause. e.q. if (checkType == DistList())

Returns:
immutable dist list

Group

public final de.uplanet.lucy.server.usermanager.IDsType Group()
can be used in a if clause. e.q. if (checkType == Group())

Returns:
immutable group type

OrgUnit

public final de.uplanet.lucy.server.usermanager.IDsType OrgUnit()
can be used in a if clause. e.q. if (checkType == OrgUnit())

Returns:
immutable OrgUnit type

Organization

public final de.uplanet.lucy.server.usermanager.IDsType Organization()
can be used in a if clause. e.q. if (checkType == Organization())

Returns:
immutable OrgUnit type

UserDefined

public final de.uplanet.lucy.server.usermanager.IDsType UserDefined(int p_iId,
                                                                    java.lang.String p_strKey)
new User defined type (not immutable) cannot use in a if clause to check a type like if (TYPE == getUserDefined(...)) must use the equals method!

Parameters:
p_iId -
p_strKey -
Returns:
a new user defined type

isValid

public final boolean isValid(java.lang.Object p_item)
checks if the p_item is an valid DsItem Object, that can be used in the ds wrapper classes

Parameters:
p_item - item to check
Returns:
true if p_item is an valid type

isObject

public final boolean isObject(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
checks if the p_item is an object type

Parameters:
p_item - not be null
Returns:
true/false

isUser

public final boolean isUser(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
checks if the p_item is an user type

Parameters:
p_item -
Returns:
true/false

isDerivedFromUser

public final boolean isDerivedFromUser(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
checks if the p_item is an user type

Parameters:
p_item -
Returns:
true/false

isDerivedFromUser

public final boolean isDerivedFromUser(java.lang.String p_strTypeKey)
checks if the p_item is an user type

Parameters:
p_strTypeKey -
Returns:
true/false

isContainer

public final boolean isContainer(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
check if p_item is derived from user

Parameters:
p_item -
Returns:
true/false

isDerivedFromContainer

public final boolean isDerivedFromContainer(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
check if p_item is derived from container

Parameters:
p_item -
Returns:
true/false

isDerivedFromContainer

public final boolean isDerivedFromContainer(java.lang.String p_strTypeKey)
check if p_item is derived from container

Parameters:
p_strTypeKey -
Returns:
true/false

isSet

public final boolean isSet(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
checks if p_item is a set

Parameters:
p_item -
Returns:
true/false

isDerivedFromSet

public final boolean isDerivedFromSet(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
check if p_item is derived from set

Parameters:
p_item -
Returns:
true/false

isDerivedFromSet

public final boolean isDerivedFromSet(java.lang.String p_strTypeKey)
check if p_item is derived from set

Parameters:
p_strTypeKey -
Returns:
true/false

isRole

public final boolean isRole(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
checks if p_item is a role

Parameters:
p_item -
Returns:
true/false

isRole

public final boolean isRole(java.lang.String p_strTypeKey)
checks if p_item is a role

Parameters:
p_strTypeKey -
Returns:
true/false

isGroup

public final boolean isGroup(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
checks if p_item is a Group

Parameters:
p_item -
Returns:
true/false

isGroup

public final boolean isGroup(java.lang.String p_strTypeKey)
checks if p_item is a Group

Parameters:
p_strTypeKey -
Returns:
true/false

isDistList

public final boolean isDistList(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
checks if p_item is a DistList

Parameters:
p_item -
Returns:
true/false

isOrgUnit

public final boolean isOrgUnit(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
checks if p_item is a OrgUnit

Parameters:
p_item -
Returns:
true/false

isOrganization

public final boolean isOrganization(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item)
checks if p_item is a Organizationt

Parameters:
p_item -
Returns:
true/false

isUserDefined

public final boolean isUserDefined(de.uplanet.lucy.server.auxiliaries.ds.IDsItem p_item,
                                   java.lang.String p_strKey)
checks if p_item is a user defined object with the given id (equals to the STRNAME column in the DSCLASS table)

Parameters:
p_item -
p_strKey -
Returns:
true/false


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.