|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.EnterpriseHelper
This is the helper for EnterpriseService
allowing static access
via EnterpriseHelper.service
; it has no helper methods defined.
Supported API: false
Extendable: false
Field Summary | |
private static WTContainerRef |
classicRef
|
private static String |
CLASSNAME
|
private static WTOrganization |
defaultOrg
|
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
NUMBER_LOGICAL_ID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
static EnterpriseService |
service
Supported API: false |
Constructor Summary | |
EnterpriseHelper()
|
Method Summary | |
static String |
getNumber(Object[] args)
Generates a number based on the arguments (as passed by a rule). |
static String |
getNumber(Object obj,
WTContainerRef container)
Return a number that is generated using the number scheme specified in the object initialization rules for the specified container. |
static String |
getNumber(String fmtString)
|
static boolean |
isAutoNumber(Object obj)
Return whether or not the rules that are in the system specify that the specified obj should be auto-numbered. |
static boolean |
isAutoNumber(Object obj,
WTContainerRef container)
Return whether or not the rules that are in the system specify that the specified obj should be auto-numbered. |
static boolean |
isAutoNumber(Object obj,
WTContainerRef container,
WTOrganization org)
Returns the conjunction of the result of isAutoNumber(obj, container) and the disjunction of
obj 's neither being nor representing wt.org.OrganizationOwned
and org 's representing an internal organization. |
static boolean |
isAutoNumber(Object obj,
WTOrganization org)
Returns the result of isAutoNumber(obj, container, org) ,
where container is a reference to the Windchill PDM
classic container. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(EnterpriseHelper thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final EnterpriseService service
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static WTContainerRef classicRef
private static WTOrganization defaultOrg
public static final String NUMBER_LOGICAL_ID
Constructor Detail |
public EnterpriseHelper()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(EnterpriseHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static String getNumber(Object[] args) throws WTException
WTException
public static String getNumber(Object obj, WTContainerRef container) throws WTException
obj
can be either an object or a type identifier
(such as a Class
).
WTException
public static String getNumber(String fmtString) throws WTException
WTException
public static boolean isAutoNumber(Object obj, WTOrganization org) throws WTException
isAutoNumber(obj, container, org)
,
where container
is a reference to the Windchill PDM
classic container. This method will throw an exception if invoked
within a product other than Windchill PDM.
obj
- determine whether auto-numbering should be used for this objorg
- the organization to be tested as internal
WTException
public static boolean isAutoNumber(Object obj, WTContainerRef container, WTOrganization org) throws WTException
isAutoNumber(obj, container)
and the disjunction of
obj
's neither being nor representing wt.org.OrganizationOwned
and org
's representing an internal organization. If
org
is null, the Windchill PDM (classic) container's
organization container's organization is assumed.
obj
- determine whether auto-numbering should be used for this objcontainer
- the container whose rules should be queriedorg
- the organization to be tested as internal
WTException
public static boolean isAutoNumber(Object obj) throws WTException
obj
should be auto-numbered.
If obj
is a type then this method returns whether
or not the rules that are in the system specify that instances
of the specified objType should be auto-numbered.
The Classic
is used as the container for the searching
for rules.
obj
- determine whether auto-numbering should be used for this obj
WTException
public static boolean isAutoNumber(Object obj, WTContainerRef container) throws WTException
obj
should be auto-numbered.
If obj
is a type then this method returns whether
or not the rules that are in the system specify that instances
of the specified objType should be auto-numbered.
obj
- determine whether auto-numbering should be used for this objcontainer
- the container whose rules should be queried
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |